<?php 
require_once( 'Base/CBaseComment.class.php');
class CComment extends CBaseComment {

	public function __construct() {
		parent::__construct();
		return true;
	}	
	
	public function deleteCommentsByIds( $arrintBlogIds, $objDatabase ) {
	
		$strSql = ' DELETE FROM `comments` WHERE `id` IN(' . implode( ',', $arrintBlogIds ) . ')';
		return parent::deleteRecord( $strSql, $objDatabase );
	}
	
	public function updateCommentsActionByIds( $strAction, $arrintBlogIds, $objDatabase ) {
	
		$strSql = 'UPDATE
						`comments`
	
					SET
						`is_status` = ' . $strAction . '
					WHERE
						`id` IN(' . implode( ',', $arrintBlogIds ) . ')';
	
		return parent::updateRecord( $strSql, $objDatabase );
	}
	

}

?>